package com.yidianyanglao.user.bean;

import java.util.Date;

/**
 * 推荐记录
 * Created by Administrator on 2016/11/4.
 */

public class RecommRecord {

    private int id;
    private int fromuserId;         //推荐人外键id
    private int touserId;           //被推荐人id
    private String fromUserName;    //推荐人姓名
    private String toUserName;      //被推荐人姓名
    private int fromUserUsertype;   //推荐人类型   0:花匠  1：商户
    private int toUserUsertype;      //被推荐人类型  0：花匠 1：商户
    private Date createdate;            //创建时间
    private double fromUserSeedreward;  //推荐人注册奖励
    private double toUserSeedreward;    //被推荐人注册奖励

    public RecommRecord(){}

    //推荐人id，被推荐人id，推荐人姓名，被推荐人姓名，推荐人用户类型，被推荐人用户类型
    public RecommRecord(int fromuserId,int touserId,String fromUserName,String toUserName,int fromUserUsertype,int toUserUsertype){
        this.fromuserId = fromuserId;
        this.touserId = touserId;
        this.fromUserName = fromUserName;
        this.toUserName = toUserName;
        this.fromUserUsertype = fromUserUsertype;
        this.toUserUsertype = toUserUsertype;
        this.fromUserSeedreward = 10;
        this.toUserSeedreward = 10;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getFromuserId() {
        return fromuserId;
    }

    public void setFromuserId(int fromuserId) {
        this.fromuserId = fromuserId;
    }

    public int getTouserId() {
        return touserId;
    }

    public void setTouserId(int touserId) {
        this.touserId = touserId;
    }

    public String getFromUserName() {
        return fromUserName;
    }

    public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
    }

    public String getToUserName() {
        return toUserName;
    }

    public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
    }

    public int getFromUserUsertype() {
        return fromUserUsertype;
    }

    public void setFromUserUsertype(int fromUserUsertype) {
        this.fromUserUsertype = fromUserUsertype;
    }

    public int getToUserUsertype() {
        return toUserUsertype;
    }

    public void setToUserUsertype(int toUserUsertype) {
        this.toUserUsertype = toUserUsertype;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public double getFromUserSeedreward() {
        return fromUserSeedreward;
    }

    public void setFromUserSeedreward(double fromUserSeedreward) {
        this.fromUserSeedreward = fromUserSeedreward;
    }

    public double getToUserSeedreward() {
        return toUserSeedreward;
    }

    public void setToUserSeedreward(double toUserSeedreward) {
        this.toUserSeedreward = toUserSeedreward;
    }
}
